﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_UploadSelect.aspx.cs"
    Inherits="V5_EShop.Admin.Upload.Admin_UploadSelect" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../Includes/ckfinder/ckfinder.js" type="text/javascript"></script>
    <style type="text/css">
        body { color: Black;  margin:0; padding:0;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <script type="text/javascript">
        function showFileInfo(fileUrl, data) {
            var msg = 'The selected URL is: <a href="' + fileUrl + '">' + fileUrl + '</a><br /><br />';
            // Display additional information available in the "data" object.
            // For example, the size of a file (in KB) is available in the data["fileSize"] variable.
            if (fileUrl != data['fileUrl'])
                msg += '<b>File url:</b> ' + data['fileUrl'] + '<br />';
            msg += '<b>File size:</b> ' + data['fileSize'] + 'KB<br />';
            msg += '<b>Last modified:</b> ' + data['fileDate'];

            // this = CKFinderAPI object
            this.openMsgDialog("Selected file", msg);
        }
        var finder = new CKFinder();
        // The path for the installation of CKFinder (default = "/ckfinder/").
        finder.basePath = '../';
        // The default height is 400.
        finder.height = 500;
        // This is a sample function which is called when a file is selected in CKFinder.
        finder.selectActionFunction = showFileInfo;
        finder.create();

    </script>
    </form>
</body>
</html>
